package com.yhq.thrift.client;

import org.apache.commons.pool2.KeyedPooledObjectFactory;
import org.apache.commons.pool2.impl.GenericKeyedObjectPool;
import org.apache.commons.pool2.impl.GenericKeyedObjectPoolConfig;
import org.apache.thrift.transport.TTransport;

/**
 * Created by yhq on 2016/12/6.
 */
public class ThriftGenericKeyedObjectPool<K,T> extends GenericKeyedObjectPool<ServerKey,TTransport> {

    public ThriftGenericKeyedObjectPool(KeyedPooledObjectFactory<ServerKey,TTransport> factory) {
        super(factory);
    }

    public ThriftGenericKeyedObjectPool(KeyedPooledObjectFactory<ServerKey,TTransport> factory, GenericKeyedObjectPoolConfig config) {
        super(factory, config);
    }
}
